import {Component} from '@angular/core';
import {NavController, NavParams} from 'ionic-angular';

import {FtMenu} from '../../ft-comp/ft-menu';

import {Backend} from '../../providers/backend';
import {Certificate} from './tab-Certificate';


@Component({
  templateUrl: 'build/pages/tab-test/tab-information.html',
  directives: [FtMenu],
})
export class Information {

  static get parameters() {
    return [[NavController], [NavParams], [Backend]];
  }

  constructor(navCtrl, params, backend) {
    this.navCtrl = navCtrl;
    this.params = params;
    this.backend = backend;

    this.fuwu = 'http://gti.ftbj.net';
    this.did;
    this.result={};
    this.pageIndex;
    this.item=3;
    this.img1 = 'asset/icon/me1.png';
    this.menus = [
      { 'id': 3, 'name': '基本信息' },
      { 'id': 4, 'name': '注册信息' },
      { 'id': 5, 'name': '业务信息' }
    ];

  }

  menuChanged(item) {
    console.log(item.id);
    if(item.id==3){
      this.item=3;
    }else if(item.id==4){
this.item=4;
    }else{
this.item=5;
    }
   
  }

  toFile(id,classid) {
    if (this.select_menu =='Meeting') {
      this.navCtrl.push(Files, { id: id});
    } else {
      this.navCtrl.push(Details, { id: id,classid:classid });
    }
  }
  certificateInfo(){
  this.navCtrl.push(Certificate);
  
  }

}
